﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpArch.Core.PersistenceSupport.NHibernate;

namespace Peak.Core.DataInterfaces
{
  public interface IRoleRepository : INHibernateRepositoryWithTypedId<Role, int>
  {

    Role GetByName(string name);
    Role[] GetByUserName(string userName);

    bool IsUserInRole(string userName, string name);
  }
}
